home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Freeware / First Page 2006 3.00 / fp2006-final-3.00-setup.exe / {app} / Iscripts / Forms Misc / smut-engine.izs < prev    next >
Text File  |  2005-09-28  |  3KB  |  126 lines

  1. <!NOWIZARD>
  2.  
  3. <!TITLE>Smut Engine
  4.  
  5. <!/TITLE>
  6.  
  7. <!DESCRIPTION>Use JavaScript to ensure that forms submissions to do not contain words you don't want. It can eliminate dirty words or competitors' names, whatever you want. <!/DESCRIPTION> 
  8.  
  9. <!CATEGORY>Forms<!/CATEGORY>
  10.  
  11. <!SCRIPT>
  12. <!-- START OF SCRIPT -->
  13.  
  14.  
  15. <!-- HOW TO INSTALL SMUT ENGINE:
  16.  
  17.    1.  Paste the coding into the HEAD of your HTML document
  18.    2.  Put the last code into the BODY of your HTML document  -->
  19.  
  20. <!--  STEP ONE: Copy this code into the HEAD of your HTML document  -->
  21.  
  22. <HEAD>
  23.  
  24. <SCRIPT LANGUAGE="JavaScript">
  25.  
  26.  
  27.  
  28. <!-- Begin
  29. function smutEngine() {
  30. smut="#@&*%!#@&*%!#@&*%!";
  31. cmp="sex babes shit fuck damn porno cum cunt prick pecker ass "
  32. +"asshole pedophile man-boy man/boy dong twat ";
  33. txt=document.isn.dirt.value;
  34. tstx="";
  35. for (var i=0;i<16;i++){
  36. pos=cmp.indexOf(" ");
  37. wrd=cmp.substring(0,pos);
  38. wrdl=wrd.length
  39. cmp=cmp.substring(pos+1,cmp.length);
  40. while (txt.indexOf(wrd)>-1){
  41. pos=txt.indexOf(wrd);
  42. txt=txt.substring(0,pos)+smut.substring(0,wrdl)
  43. +txt.substring((pos+wrdl),txt.length);
  44.    }
  45. }
  46.  document.isn.dirt.value=txt;
  47. }
  48. // End -->
  49. </SCRIPT>
  50.  
  51. <!--  STEP TWO: Copy this code into the BODY of your HTML document  -->
  52.  
  53. <BODY>
  54.  
  55. <CENTER>
  56. <FORM NAME="isn">
  57. <DIV ALIGN=CENTER><INPUT TYPE="text" NAME="dirt" SIZE=40 VALUE=""><BR>
  58. <INPUT TYPE="button" NAME="smut1" VALUE=" Submit " onClick="smutEngine(this.form)">
  59. </DIV> 
  60. </FORM>
  61. </CENTER>
  62.  
  63.  
  64.  
  65. <!-- END OF SCRIPT -->
  66. <!/SCRIPT>
  67.  
  68. <!PREVIEW>
  69. <!-- START OF SCRIPT -->
  70.  
  71.  
  72. <!-- HOW TO INSTALL SMUT ENGINE:
  73.  
  74.    1.  Paste the coding into the HEAD of your HTML document
  75.    2.  Put the last code into the BODY of your HTML document  -->
  76.  
  77. <!--  STEP ONE: Copy this code into the HEAD of your HTML document  -->
  78.  
  79. <HEAD>
  80.  
  81. <SCRIPT LANGUAGE="JavaScript">
  82.  
  83.  
  84.  
  85. <!-- Begin
  86. function smutEngine() {
  87. smut="#@&*%!#@&*%!#@&*%!";
  88. cmp="sex babes shit fuck damn porno cum cunt prick pecker ass "
  89. +"asshole pedophile man-boy man/boy dong twat ";
  90. txt=document.isn.dirt.value;
  91. tstx="";
  92. for (var i=0;i<16;i++){
  93. pos=cmp.indexOf(" ");
  94. wrd=cmp.substring(0,pos);
  95. wrdl=wrd.length
  96. cmp=cmp.substring(pos+1,cmp.length);
  97. while (txt.indexOf(wrd)>-1){
  98. pos=txt.indexOf(wrd);
  99. txt=txt.substring(0,pos)+smut.substring(0,wrdl)
  100. +txt.substring((pos+wrdl),txt.length);
  101.    }
  102. }
  103.  document.isn.dirt.value=txt;
  104. }
  105. // End -->
  106. </SCRIPT>
  107.  
  108. <!--  STEP TWO: Copy this code into the BODY of your HTML document  -->
  109.  
  110. <BODY>
  111.  
  112. <CENTER>
  113. <FORM NAME="isn">
  114. <DIV ALIGN=CENTER><INPUT TYPE="text" NAME="dirt" SIZE=40 VALUE=""><BR>
  115. <INPUT TYPE="button" NAME="smut1" VALUE=" Submit " onClick="smutEngine(this.form)">
  116. </DIV> 
  117. </FORM>
  118. </CENTER>
  119.  
  120.  
  121.  
  122. <!-- END OF SCRIPT -->
  123. <!/PREVIEW>
  124.  
  125. <!RELATED>NONE<!/RELATED>
  126.